/**
 * 
 * 广州锐鹏计算机科技有限公司（www.ruipengkj.com）
 * 
 * 
 * Copyright (c) 2011-2012 RUIPENGKJ.Co.Ltd. All rights reserved.
 * 
 * */
package com.ruipengkj.component.jtable;

import java.awt.Color;
import java.awt.Component;

import javax.swing.AbstractCellEditor;
import javax.swing.JPanel;
import javax.swing.JTable;
import javax.swing.table.TableCellEditor;
/**
 * 说明：
 * 下单面板 编辑器
 */
public class JPanelCellEditor extends AbstractCellEditor implements TableCellEditor {
															
	private static final long serialVersionUID = 1L;
	
	@Override
	public Component getTableCellEditorComponent(JTable table, Object value,
			boolean isSelected, int row, int column) {
		JPanel panel = (JPanel)table.getValueAt(row, column);
		panel.setBackground(Color.white);
		return panel;
	}

	@Override
	public Object getCellEditorValue() {
		return null;
	}
}
